//
//  IndexView.swift
//  Juejin App Demo
//
//  Created by 葛鹏 on 2021/8/15.
//

import SwiftUI

struct IndexView: View {
    
    @State var searchViewPresented: Bool = false
    
    var body: some View {
        HStack{
            SearchStaticView().fullScreenCover(isPresented: $searchViewPresented, content: {
                SearchView(searchViewPresented: $searchViewPresented)
            }).onTapGesture {
                searchViewPresented = true
            }
            Button(action: /*@START_MENU_TOKEN@*/{}/*@END_MENU_TOKEN@*/, label: {
                Image(systemName: "bookmark")
            })
            Button(action: /*@START_MENU_TOKEN@*/{}/*@END_MENU_TOKEN@*/, label: {
                HStack{
                    Image(systemName: "checkmark.square")
                    Text("已签")
                }
                
            })
        }.foregroundColor(Color(red: 186/255, green: 195/255, blue: 194/255)).padding()
    }
}

struct IndexView_Previews: PreviewProvider {
    static var previews: some View {
        IndexView()
    }
}
